package com.ly.heart.service;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ly.common.core.domain.AjaxResult;
import com.ly.heart.domain.AssetsTypeEntity;

/**
 * 资产类别Service接口
 *
 * @author cxl
 * @date 2024-09-03
 */
public interface IAssetsTypeService extends IService<AssetsTypeEntity> {

    /**
     * 获取资产类别列表，带分页
     * @param assetsType
     * @return
     */
    AjaxResult getAssetsTypeList(AssetsTypeEntity assetsType);

    /**
     * 查询资产类别
     *
     * @param id 资产类别ID
     * @return 资产类别
     */
    public AssetsTypeEntity selectAssetsTypeEntityById(String id);

    /**
     * 查询资产类别列表
     *
     * @param assetsTypeEntity 资产类别
     * @return 资产类别集合
     */
    public List<AssetsTypeEntity> selectAssetsTypeEntityList(AssetsTypeEntity assetsTypeEntity);

    /**
     * 新增资产类别
     *
     * @param assetsTypeEntity 资产类别
     * @return 结果
     */
    public int insertAssetsTypeEntity(AssetsTypeEntity assetsTypeEntity);

    /**
     * 修改资产类别
     *
     * @param assetsTypeEntity 资产类别
     * @return 结果
     */
    public int updateAssetsTypeEntity(AssetsTypeEntity assetsTypeEntity);

    /**
     * 批量删除资产类别
     *
     * @param ids 需要删除的资产类别ID
     * @return 结果
     */
    public int deleteAssetsTypeEntityByIds(String[] ids);

    /**
     * 删除资产类别信息
     *
     * @param id 资产类别ID
     * @return 结果
     */
    public int deleteAssetsTypeEntityById(String id);

    /**
     * 禁用/反禁用
     * @param id
     * @return
     */
    AjaxResult disable (String id);
}
